import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //获取证书类型
    getCredential (data) {
        return httpGet({
            url: '/config/kv/getDicValue',
            params: {
                dicName: data,
                dicKey: '',
                isEnable: 'true'
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //获取系统级字典值(树形字典)
    getCredentialTree (data) {
        return httpGet({
            url: '/config/kv/getDicValueTree1',
            params: {
                dicName: data.name,
                parentId: data.id,
                isEnable: 'true'
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //获取证书类型
    getPersonTypel () {
        return httpGet({
            url: '/config/kv/getDicValue',
            params: {
                dicName: '人员类型',
                dicKey: ''
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //获取附件类型
    getFileType () {
        return httpGet({
            url: '/config/kv/getDicValue',
            params: {
                dicName: '附件类型',
                dicKey: ''
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },

}
export default request